import React from 'react'

class Input extends React.Component{

    constructor(props){
        super(props)
        this.state={
            value:this.props.value
        }
    }
    componentWillReceiveProps(props2) {
        this.setState({
            value:props2.value
        })
    }
    render() {
        return (
            <div className="inputwrapper">
                <textarea placeholder={this.props.placeholder} value={this.props.value} name={this.state.name} onChange={this.props.vauleChange}/>
            </div>
        );
    }
}

export default Input